<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
       echo "今天是".date("Y年m月d日")."<br>";
       date_default_timezone_set("Asia/Shanghai");
       echo "时间是".date("h:i:sa")."<br>";
      $day=13;
        echo "今天到国庆节还有".$day."天。</br>";
        echo "今天到国庆节还有 $day 天。</br>";
        $d1=strtotime("December 31");
$d2=ceil(($d1-time())/60/60/24);
echo "距离国庆还有12天：" . $d2 ." 天。</br>";
$endTime = '2015-10-18</br>';
$VarTime = floor((strtotime($endTime)-time())/86400);
echo $VarTime;exit;
        ?>
    </body>
</html>
